{template 'header'}
<link rel="stylesheet" href="{CSS_URL}buy-helper.css"/>
<!--面包屑 start-->
<div class="location layout960">
	<h2>买车助手</h2>
	<p>当前位置: <a href="{url('buyhelp/index')}">首页</a>
		{if $navname}&nbsp;»&nbsp; <a href="{$nav[$navname]['linkurl']}">{$nav[$navname]['name']}</a></p>{/if}
</div>
<!--面包屑 end-->
<!--内页导航 start-->
<div class="nav-inner layout960">
	<ul class="nav-inner-main fn-clear">
		<li {if !$navname}class="current"{/if}><a href="{url('buyhelp/index')}" title="首页">首页</a></li>
        <li class="line"></li>
		{loop $nav $k $t}
		<li {if $navname == $k}class="current"{/if}><a href="{$t[linkurl]}" title="{$t[name]}">{$t[name]}</a></li>
		<li class="line"></li>
		{/loop}
	</ul>
	<ul class="nav-inner-sub fn-clear" id="cartype">
		{loop $level $id $name}
		<li  id="{$id}"><a href="javascript:void(0)">{$name}</a></li>
		{/loop}
	</ul>
</div>
<script >
  seajs.use(['$'],function($){
	  $("#"+{$cartypeid}).addClass('current');
	  $('#cartype').find('li').click(function(){
		 var cid =$(this).attr('id');
		 $(this).addClass('current').siblings('li').removeClass('current');
		  $.ajax({
			  url:lemon.site_url+'ajax.php',
			  data:'module=buyhelp&action=cartype&cid='+cid,
			  success:function(e){
				  location.reload();
			  }
		  })
	  })
  })
</script >
<!--内页导航 end-->
